package com.itheima.wisdomnext.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Insert;

@Mapper
public interface PostImageMapper {

    // 插入图片记录
    @Insert("INSERT INTO post_images (post_id, image_url) VALUES (#{postId}, #{imageUrl})")
    void insertPostImage(@Param("postId") int postId, @Param("imageUrl") String imageUrl);
}
